#!/bin/sh
echo "-------> 构建Docker镜像"
APP_NAME=job-process-center
DEFAULT_TAG='latest'

if [ ! -n "$1" ] ;then
TAG=$DEFAULT_TAG
echo "use default tag:${TAG}..."
else
TAG=$1
echo "tag: ${TAG}"
fi

docker build -f docker/Dockerfile \
--build-arg APP_NAME=$APP_NAME \
--build-arg BUILD_TIME=`date +%y%m%d%H%M%S` \
-t $APP_NAME:$TAG .

